import request from '@/config/axios'

// 获取企业授权码
export const getCorpAuthUrl = async () => {
  return await request.get({ url: `/wecom/we-com-api-config/get-corp-auth-url` })
}

//创建客户群会话摘要分析任务
export const createSummaryTask = async (params) => {
  return await request.post({ url: `/wecom/we-chat-msg-record/create-summary-task`, params })
}

//获取客户群会话摘要分析
export const getSummaryTask = async (params) => {
  return await request.get({ url: `/wecom/we-chat-msg-record/get-summary-task-result`, params })
}

// 创建客户标签分析
export const createTagTask = async (params) => {
  return await request.post({ url: `/wecom/we-chat-msg-record/create-tag-task`, params })
}
// 获取客户标签分析
export const getTagTask = async (params) => {
  return await request.get({ url: `/wecom/we-chat-msg-record/get-tag-task-result`, params })
}

// 创建情感分析分析
export const createSentimenTask = async (params) => {
  return await request.post({ url: `/wecom/we-chat-msg-record/create-sentiment-task`, params })
}
// 获取情感分析分析
export const getSentimenTask = async (params) => {
  return await request.get({ url: `/wecom/we-chat-msg-record/get-sentiment-task-result`, params })
}

/***********************/

// 创建客户会话摘要分析任务
export const createMsgSummaryTask = async (params) => {
  return await request.post({ url: `/wecom/we-msg-record/create-summary-task`, params })
}

//获取客户群会话摘要分析
export const getMsgSummaryTask = async (params) => {
  return await request.get({ url: `/wecom/we-msg-record/get-summary-task-result`, params })
}

// 创建客户标签分析
export const createMsgTagTask = async (params) => {
  return await request.post({ url: `/wecom/we-msg-record/create-tag-task`, params })
}
// 获取客户标签分析
export const getMsgTagTask = async (params) => {
  return await request.get({ url: `/wecom/we-msg-record/get-tag-task-result`, params })
}

// 创建情感分析分析
export const createMsgSentimenTask = async (params) => {
  return await request.post({ url: `/wecom/we-msg-record/create-sentiment-task`, params })
}
// 获取情感分析分析
export const getMsgSentimenTask = async (params) => {
  return await request.get({ url: `/wecom/we-msg-record/get-sentiment-task-result`, params })
}
